package sg.bigo.like.fastclick;

import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

public class MainActivity extends AppCompatActivity implements View.OnClickListener {
    private static final String TAG = "MainActivity";

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        Button firstButton = findViewById(R.id.click_btn_first);
        firstButton.setOnClickListener(this);
    }

    @FastClickAnnotation(1000)
    public void onClick(View view) {
        Log.i(TAG, "onClick view");
    }

}
